package com.bwf.obj02;

/**
 * @Version v1.0
 * @Description: TODO
 * @Author ZHANZHONGXIN
 * @Date 2022/5/9 15:05
 * @Copyright 博为峰
 */
public class Test {
    public static void main(String[] args) {
        Student s1 = new Student();
        s1.study();

        Student s2 = new Student("张三");
        s2.name = "赵六";
        s2.study();

        //匿名对象
        new Student("李四",20);

    }
}
